package com.wh.dle;

import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.BasicProperties;
import com.rabbitmq.client.Channel;
import com.wh.utils.ConnectionUtil;
import org.omg.CORBA.PERSIST_STORE;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

/**
 * @Auther: HuiEr
 * @Date: 2020/3/12 12:57
 * @Description
 */
public class Producer {

    public static void main(String[] args) throws IOException, TimeoutException {
        Channel channel = ConnectionUtil.getConnection().createChannel();
        channel.basicPublish(Handle.TTL_EXCHANGE_NAME,"" ,null,("aaaaa").getBytes());

    }
}
